const pagination = {
  data() {
    return {
      currentPage: 1,
      pageSize: 10,
      total: 0,
      loading: true,
    }
  },
  methods: {
    reset() {
      this.currentPage = 1
      this.fetchData();
    },
    onSizeChange(v) {
      this.pageSize = v;
      this.fetchData();
    },
    onCurrentChange(v) {
      this.currentPage = v;
      this.fetchData();
    },
  }
}

export default pagination
